package com.eight.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eight.pojo.TbCar;
import com.eight.vo.CarVo;
import com.eight.vo.ComResult;
import io.swagger.models.auth.In;

import java.util.List;

public interface CarInformationService  {

    ComResult selectAllCar(CarVo carVo);

    ComResult insertCar(TbCar tbCar);

    ComResult deleteCar(int id);

    ComResult updateCar(TbCar tbCar);

    /**
     * 查询车辆的类型和门店
     * @param shopId
     * @param type
     * @return
     */
    List<TbCar> selectByTypeShopId(Integer shopId, Integer type);


    /**
     * 根据价格排序
     * @param shopId
     * @param type
     * @param orderBy
     * @return
     */
    List<TbCar> selectShopByType(Integer shopId,Integer type,Integer orderBy);

    /**
     * 修改车辆租出状态
     * @param id 车辆的id
     * @return 返回的车辆结果
     */
    int updateCarById(Integer id);
}
